package cn.imnu.lowcodeformgeneratorbackend.service;

import cn.imnu.lowcodeformgeneratorbackend.dto.auth.LoginRequest;
import cn.imnu.lowcodeformgeneratorbackend.dto.auth.RegisterRequest;
import cn.imnu.lowcodeformgeneratorbackend.dto.auth.UserResponse;
import cn.imnu.lowcodeformgeneratorbackend.entity.User;

public interface UserService {
    String login(LoginRequest loginRequest);
    UserResponse register(RegisterRequest registerRequest);
    UserResponse getUserInfo(Long userId);
    User findByUsername(String username);
    boolean updateLastLoginTime(Long userId);
}
